package com.song.security.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User extends Model<User> {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @TableField("`name`")
    private String name;

    @TableField("id_card")
    private String idCard;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("status")
    private String status;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

}
